Skip to main content

getContext

Returns the current JS context.

Please note, that for the .docbuilder file the CDocBuilder.getContext method is not used.

Syntax

CDocBuilderContext getContext(boolean enterContext = 0);

Parameters

ParameterTypeDefaultDescription
enterContextboolean0Specifies whether the context will be entered.

Example

Java

CDocBuilder.initialize("");
CDocBuilder builder = new CDocBuilder();
CDocBuilderContext context = builder.getContext();
CDocBuilder.dispose();